#ifndef _DIADIEMKETXEFORM_H_
#define _DIADIEMKETXEFORM_H_

#include <FBase.h>
#include <FUi.h>
#include <FMedia.h>
#include <FGraphics.h>
#include "../Utility/Downloader.h"

class TrafficJamForm: public Osp::Ui::Controls::Form,
		public Osp::Ui::IActionEventListener,
		public IDownloadFinishedListener {

	// Construction
public:
	TrafficJamForm(void);
	virtual ~TrafficJamForm(void);
	bool Initialize();
	result OnInitializing(void);
	result OnTerminating(void);

	void SetFormId(int id){
		this->FormId = id;
	}

	static int GetFormId(){
		return FormId;
	}
	// Implementation
protected:
	Osp::Ui::Controls::EditField*pDiaDiem;
	static const int ID_BACK = 101;
	static const int ID_OK = 102;
	static int FormId;
Osp::Ui::Controls::Label*pLabelThongBao;
	// Generated call-back functions
public:
	void OnActionPerformed(const Osp::Ui::Control &source, int actionId);
	void timKetXe();
	void HienThiThongTinKetXe();

	virtual void OnDownloadComplete(Osp::Base::String url, Osp::Base::String path);
	virtual void OnDownloadFailed(Osp::Base::String url, Osp::Base::String path);
	virtual void OnDataDownloadComplete(int statusCode, Osp::Base::ByteBuffer *buffer){}
};

#endif
